Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
14 lines (10 loc) · 406 Bytes

2.3.30 - ssl_method.md

File metadata and controls

14 lines (10 loc) · 406 Bytes

ssl_method

设置OpenSSL隧道加密的算法。Server与Client使用的算法必须一致,否则SSL/TLS握手会失败,连接会被切断。 默认算法为 SWOOLE_SSLv23_METHOD

$server->set(array(
    'ssl_method' => SWOOLE_SSLv3_CLIENT_METHOD,
));

此配置在1.7.20或更高版本可用
支持的类型请参考 预定义常量